<?php
	('Access-Control-Allow-Origin：*');
	include("../mysql.php");
	$id = $_POST["id"];
    $name = $_POST["name"];
	$password = $_POST["password"];
	$phone= $_POST["phone"];
	$peopleName = $_POST["peopleName"];
	$andtime = $_POST["andtime"];
	$reason = $_POST["reason"];
	$time = $_POST["time"];
	$db = new mysql();
	$sql = "update class set name='{$name}',password='{$password}',phone='{$phone}',peopleName='{$peopleName}',andtime='{$andtime}',reason='{$reason}',time='{$time}'  where id = '{$id}'";

	echo $db->Query($sql);
	$db->close();
?>